import request from '@/utils/request'

// 查询房间属性列表
export function listRoomdata(query) {
    return request({
        url: '/apartment/roomdata/list',
        method: 'get',
        params: query
    })
}
export function findRoomdata(query) {
    return request({
        url: '/apartment/roomdata/find',
        method: 'get',
        params: query
    })
}
// 查询房间属性详细
export function getRoomdata(propertyRoomDataId) {
    return request({
        url: '/apartment/roomdata/' + propertyRoomDataId,
        method: 'get'
    })
}

// 新增房间属性
export function addRoomdata(data) {
    return request({
        url: '/apartment/roomdata',
        method: 'post',
        data: data
    })
}

// 修改房间属性
export function updateRoomdata(data) {
    return request({
        url: '/apartment/roomdata',
        method: 'put',
        data: data
    })
}

// 删除房间属性
export function delRoomdata(propertyRoomDataId) {
    return request({
        url: '/apartment/roomdata/' + propertyRoomDataId,
        method: 'delete'
    })
}
